package org.amj.wn.admin.analytics;

import java.io.Serializable;

import org.amj.wn.Property;

import com.google.appengine.api.datastore.Entity;

class Row implements Serializable {

	private static final long serialVersionUID = 7500315783975593372L;
	Object[] data;
	
	Row() {
		data = new Object[Property.values().length];
	}

	public void importData(Entity entity) {
		
		Property[] properties = Property.values();
		
		for (int i = 0; i < properties.length; i++) {
			data[i] = entity.getProperty(properties[i].name());
		}
		
	}

	public Object[] getData() {
		return data;
	}
	
	
}